<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <div class="box"></div>





    <script src="../js/7.js"></script>
    <script>
        // console.log
        window.onload = () => {
            let box = document.querySelector(".box")
            // document.write(location.search)
            let zifu = location.search;
            let a = zifu.split("=")
            // console.log(a)
            // a[1]
            shuju.forEach((item, index) => {
                if (item.id == a[1]) {
                    // console.log("asfas")
                    let box1 = document.createElement("div");
                    let img = document.createElement("img");
                    img.setAttribute("src", item.img);
                    box1.appendChild(img)

                    // 右边
                    let box2 = document.createElement("div");





                    box.appendChild(box1)
                }
            })

            // box.innerHTML = location.search
        }

    </script>
</body>

</html>